$("#regex_config").click(function() {
	bootbox.dialog({
		title : "网址规则添加",
		onEscape : true,
		message :$("#regexDomain").html() ,
		size: 'large',
		buttons : {
			button : {
				label : "添加",
				callback : function() {
					var line = "\n" ;
					line += $('.bootbox-body #regexDomain_name').val()+"    " ;
					line += $('.bootbox-body #regexDomain_regex').val()+"    ";
					line += $('.bootbox-body #regexDomain_flag').val()+"    ";
					line += $('.bootbox-body #regexDomain_pageType').val()+"    ";
					line += $('.bootbox-body #regexDomain_gatherType').val();
					$("#regexFilter").val($("#regexFilter").val()+line);
					return true;
				}
			}
		}
	});
});


$("#regex_config_file").click(function() {
	bootbox.dialog({
		title : "网址规则添加",
		onEscape : true,
		message :$("#regexDomain").html() ,
		size: 'large',
		buttons : {
			button : {
				label : "添加",
				callback : function() {
					var line = "\n" ;
					line += $('.bootbox-body #regexDomain_name').val()+"    " ;
					line += $('.bootbox-body #regexDomain_regex').val()+"    ";
					line += $('.bootbox-body #regexDomain_flag').val();
					$("#regexFilter").val($("#regexFilter").val()+line);
					return true;
				}
			}
		}
	});
});



